<?php

class BaseLoginAction extends Action {
    public function __construct() {
        parent::__construct();
        
        if(isset($_SESSION['uid'])&&  intval($_SESSION['uid'])>0){
            $this->uid=$_SESSION['uid'];
            $member=D("member")->where(array("mid"=>  $this->uid))->find();
            $this->assign("member",$member);
       }else{
           $this->redirect("index/index/");
       }
    }
    
}
?>
